package com.cunyme;

import android.app.ListActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class Esims extends ListActivity
{
	String[] esimsMenuOptions =
	{
		"eMail", "Transcript", "Semester Bill", "Awards",
	};
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.esims);
        
        ArrayAdapter<String> esimsAdapter;
        esimsAdapter = new ArrayAdapter<String>(
        	this,
        	R.layout.simple_list_item_1_blue,
        	esimsMenuOptions);
        
        setListAdapter(esimsAdapter);
        
    }
    
    protected void onListItemClick(ListView l, View v, int position, long id) {
    	super.onListItemClick(l, v, position, id);
    	
    	if (getListView().getItemAtPosition(position).equals("eMail")){
			  Intent gotoEsims = new Intent(Esims.this, esims_email.class);
			  startActivity(gotoEsims);	  	  
    	}
    	else if (getListView().getItemAtPosition(position).equals("Transcript")){
			  Intent gotoEsims = new Intent(Esims.this, esims_transcript.class);
			  startActivity(gotoEsims);	  	  
    	}
    	else if (getListView().getItemAtPosition(position).equals("Semester Bill")){
			  Intent gotoEsims = new Intent(Esims.this, esims_bill.class);
			  startActivity(gotoEsims);	  	  
    	}
    	else if (getListView().getItemAtPosition(position).equals("Awards")){
			  Intent gotoEsims = new Intent(Esims.this, esims_awards.class);
			  startActivity(gotoEsims);	  	  
    	}
    	} 
    
}
